package gov.mogaha.ntis.cmm.mob.law.wrapper;

import gov.mogaha.ntis.cmm.mob.R;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CmmMobLawListWrapper {
	View base;
	TextView lawSnoView;
	TextView lawNmView;
	TextView lawTypeNmView;
	TextView lawYmdView;
	LinearLayout lawLayout;
	
	public CmmMobLawListWrapper(View base) {
		this.base = base;
	}

	public View getBase() {
		return base;
	}
	
	public TextView getLawSnoView() {
		if(lawSnoView == null){
			lawSnoView = (TextView) base.findViewById(R.id.law_sno);
		}
		return lawSnoView;
	}
	
	public TextView getLawNmView() {
		if(lawNmView == null){
			lawNmView = (TextView) base.findViewById(R.id.law_nm);
		}
		return lawNmView;
	}

	public TextView getLawTypeNmView() {
		if(lawTypeNmView == null){
			lawTypeNmView = (TextView) base.findViewById(R.id.law_type_nm);
		}
		return lawTypeNmView;
	}

	public TextView getLawYmdView() {
		if(lawYmdView == null){
			lawYmdView = (TextView) base.findViewById(R.id.law_ymd);
		}
		return lawYmdView;
	}
	
	public LinearLayout getLawLayout(){
		if(lawLayout == null){
			lawLayout = (LinearLayout) base.findViewById(R.id.cmmmoblawsearchrow);
		}
		
		return lawLayout;
	}	
}
